package com.yulongtian.offers.day202208.day20220824;

/**
 * 不会，但看懂了
 * https://leetcode.cn/problems/fu-za-lian-biao-de-fu-zhi-lcof/submissions/
 *
 * @author YulongTian
 * @date 2022/8/24 - 10:04
 */
public class Test02 {
    public static void main(String[] args) {

    }

    public Node copyRandomList(Node head) {
        Node head2 = new Node(head.val);
        head = head.next;
        while (head != null) {
            Node newNode = new Node(head.val);


        }

        return head2;

    }
}

class Node {
    int val;
    Node next;
    Node random;

    public Node(int val) {
        this.val = val;
        this.next = null;
        this.random = null;
    }
}
